﻿using RpcExtend.Model;
using RpcExtend.Model.DB;
using SqlSugarHelper;

namespace RpcExtend.DAL.Repository
{
    internal class IdentityAppDAL : IIdentityAppDAL
    {
        private IRepository<IdentityAppModel> _BasicDAL;
        public IdentityAppDAL(IRepository<IdentityAppModel> dal)
        {
            _BasicDAL = dal;
        }
        public IdentityApp GetApp(Guid id)
        {
            return _BasicDAL.Get(c => c.Id == id,c=>new IdentityApp { 
                AppName=c.AppName,
                EffectiveDate=c.EffectiveDate,
                IsEnable=c.IsEnable
            });
        }
    }
}
